From: Brion Vibber Date: Tue, 8 Sep 2009 20:59:44 +0000 (+0000) Subject: Cleanup r55984: rename new $wgDisableTooltipsAndAccesskeys to $wgEnableTooltipsAndAcc... X-Git-Tag: 1.31.0-rc.0~39828 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=4b06ec132ae8618a25b874ea98d1daa76e8e0e39;p=lhc%2Fweb%2Fwiklou.git Cleanup r55984: rename new $wgDisableTooltipsAndAccesskeys to $wgEnableTooltipsAndAccesskeys and swap value. 'enable' settings are less confusing than 'disable' settings. :) --- diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 98677d2ce1..eadfdc0468 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -3464,9 +3464,11 @@ $wgDisabledActions = array(); $wgDisableHardRedirects = false; /** - * Disable tooltips and access keys + * Set to false to disable application of access keys and tooltips, + * eg to avoid keyboard conflicts with system keys or as a low-level + * optimization. */ -$wgDisableTooltipsAndAccesskeys = false; +$wgEnableTooltipsAndAccesskeys = true; /** * Use http.dnsbl.sorbs.net to check for open proxies diff --git a/includes/Linker.php b/includes/Linker.php index a25013b06a..60407e8d0a 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -1941,8 +1941,8 @@ class Linker { * @deprecated Returns raw bits of HTML, use titleAttrib() and accesskey() */ public function tooltipAndAccesskey( $name ) { - global $wgDisableTooltipsAndAccesskeys; - if ($wgDisableTooltipsAndAccesskeys) + global $wgEnableTooltipsAndAccesskeys; + if (!$wgEnableTooltipsAndAccesskeys) return array(); # FIXME: If Sanitizer::expandAttributes() treated "false" as "output # no attribute" instead of "output '' as value for attribute", this @@ -1962,8 +1962,8 @@ class Linker { /** @deprecated Returns raw bits of HTML, use titleAttrib() */ public function tooltip( $name, $options = null ) { - global $wgDisableTooltipsAndAccesskeys; - if ($wgDisableTooltipsAndAccesskeys) + global $wgEnableTooltipsAndAccesskeys; + if ($wgEnableTooltipsAndAccesskeys) return array(); # FIXME: If Sanitizer::expandAttributes() treated "false" as "output # no attribute" instead of "output '' as value for attribute", this